﻿<UserControl x:Class="Songhay.Silverlight.BiggestBox.AdditionalSamplesPart.Views.DVColumnChartSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:toolkitDVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:vm="clr-namespace:Songhay.Silverlight.BiggestBox.AdditionalSamplesPart.ViewModels"
    Tag="Data Visualization: Column Chart sample."
    Width="512" Height="400">
    <UserControl.Resources>
        <vm:DataVisualizationViewModel x:Key="DataVisualizationViewModelDataSource" d:IsDataSource="True" />
    </UserControl.Resources>
    <UserControl.DataContext>
        <Binding Source="{StaticResource DataVisualizationViewModelDataSource}" />
    </UserControl.DataContext>
    <Grid>
        <toolkitDVC:Chart Title="Chart Title">
            <toolkitDVC:Chart.Series>
                <toolkitDVC:ColumnSeries
                    DependentValueBinding="{Binding Path=Value}"
                    IndependentValueBinding="{Binding Path=Key}"
                    ItemsSource="{Binding ChartSeries}"
                    Title="Series Title"
                    />
            </toolkitDVC:Chart.Series>
        </toolkitDVC:Chart>
    </Grid>
</UserControl>
